package com.niii.message.pojo;

import java.io.Serializable;

public class Message implements Serializable {
    private Integer id;

    private String sender;

    private String receiver;

    private String title;

    private String body;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
        sb.append(" {");
        sb.append("Hash : ").append(hashCode());
        sb.append(", id:").append(id);
        sb.append(", sender:").append(sender);
        sb.append(", receiver:").append(receiver);
        sb.append(", title:").append(title);
        sb.append(", body:").append(body);
        sb.append(", serialVersionUID:").append(serialVersionUID);
        sb.append("}");
        return sb.toString();
    }
}